//package dream.technology.mockTest;
//
//import com.alibaba.fastjson.JSONObject;
//import com.dream.technology.controller.RiskDealController;
//import com.dream.technology.zycashLog.Console;
//import org.junit.Before;
//import org.junit.Test;
//import org.junit.runner.RunWith;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.test.context.SpringBootTest;
//import org.springframework.http.MediaType;
//import org.springframework.test.context.ActiveProfiles;
//import org.springframework.test.context.junit4.SpringRunner;
//import org.springframework.test.web.servlet.MockMvc;
//import org.springframework.test.web.servlet.result.MockMvcResultHandlers;
//import org.springframework.test.web.servlet.setup.MockMvcBuilders;
//
//import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;
//import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print;
//import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
//
///**
// * 描述：
// *
// * @author chen_q_i@163.com
// * 2019/1/16 : 15:05.
// * @version : 1.0
// */
//@ActiveProfiles("dev")
//@RunWith(SpringRunner.class)
//@SpringBootTest
////@WebMvcTest(RiskDealController.class)
//public class DealContrlMock {
//
//
//
//    @Autowired
//    private RiskDealController riskDealController;
//
//    private MockMvc mvc;
//
//    @Before
//    public void setup(){
//        mvc = MockMvcBuilders.standaloneSetup(riskDealController).build();
//    }
//
//
//    @Test
//    public void exampleTest() throws Exception {
//        this.mvc.perform(post("/risk/api/deal/testMock").accept(MediaType.APPLICATION_JSON)
//                .param("s","ss")).andExpect(status().isOk())
//                .andDo(MockMvcResultHandlers.print());
//    }
//
//
//    String lixin = " {\"customer\":{\"cardId\":112,\"cardNumber\":\"222401199312011510\",\"createDate\":1552645086000,\"enabled\":true,\"hasIncreaseAmount\":false,\"id\":85,\"isActiveApp\":true,\"isBlackList\":false,\"locked\":false,\"loginFailureCount\":0,\"merchantCode\":\"merchant20190212152828\",\"merchantId\":36,\"merchantName\":\"测试商户赵珂 001\",\"mobile\":\"18643325160\",\"password\":\"98ab5c55403881b40d97af02054939830218a83453b6c437\",\"productCode\":\"merchantProduct20190212155425\",\"productId\":61,\"productName\":\"安居借\",\"reBorrow\":false,\"realName\":\"黎鑫\",\"registerIp\":\"182.48.105.69\",\"token\":\"0bad4ff4f497d50046aa1ba723f0fd09\",\"totalAmount\":1000,\"updateDate\":1552645438000},\"order\":{\"borrowingCapital\":1000.0,\"borrowingPaymentAmount\":700.00,\"borrowingPeriod\":7,\"cardNumber\":\"222401199312011510\",\"createDate\":1552889274030,\"customerId\":85,\"gender\":false,\"merchantCode\":\"merchant20190212152828\",\"merchantId\":36,\"merchantName\":\"测试商户赵珂 001\",\"mobile\":\"18643325160\",\"name\":\"黎鑫\",\"orderId\":\"XDJK-20190318140754020-898129\",\"productCode\":\"merchantProduct20190212155425\",\"productId\":61,\"productName\":\"安居借\",\"rateId\":225,\"reBorrow\":false,\"repaymentLagPenaltyRateValue\":0,\"repaymentLagRateValue\":0.000000,\"repaymentLagTime\":0,\"status\":0,\"updateDate\":1552889274030}}";
//
//        String wangting = " {\"customer\":{\"cardId\":103,\"cardNumber\":\"140321199207070023\",\"createDate\":1552620717000,\"enabled\":true,\"hasIncreaseAmount\":false,\"id\":77,\"isActiveApp\":true,\"isBlackList\":false,\"locked\":false,\"loginFailureCount\":0,\"merchantCode\":\"merchant20190212152828\",\"merchantId\":36,\"merchantName\":\"测试商户赵珂 001\",\"mobile\":\"15922205575\",\"password\":\"c56577b3d48c610998a46b3591381663263c30e80d34a371\",\"productCode\":\"merchantProduct20190212155425\",\"productId\":61,\"productName\":\"安居借\",\"reBorrow\":false,\"realName\":\"王婷\",\"registerIp\":\"223.104.13.10\",\"token\":\"bf81909d68cb61e026718672db38b829\",\"totalAmount\":1000,\"updateDate\":1552880406000},\"order\":{\"borrowingCapital\":1000.0,\"borrowingPaymentAmount\":700.00,\"borrowingPeriod\":7,\"cardNumber\":\"140321199207070023\",\"createDate\":1552894351119,\"customerId\":77,\"gender\":true,\"merchantCode\":\"merchant20190212152828\",\"merchantId\":36,\"merchantName\":\"测试商户赵珂 001\",\"mobile\":\"15922205575\",\"name\":\"王婷\",\"orderId\":\"XDJK-20190318153231113-474237\",\"productCode\":\"merchantProduct20190212155425\",\"productId\":61,\"productName\":\"安居借\",\"rateId\":225,\"reBorrow\":false,\"repaymentLagPenaltyRateValue\":0,\"repaymentLagRateValue\":0.000000,\"repaymentLagTime\":0,\"status\":0,\"updateDate\":1552894351119}}";
//    @Test
//    public void dealT() throws Exception {
//
//        String s = "{\n" +
//                "    \"customer\": {\n" +
//                "        \"cardId\": 82,\n" +
//                "        \"cardNumber\": \"370521199105260022\",\n" +
//                "        \"createDate\": 1552296560000,\n" +
//                "        \"enabled\": true,\n" +
//                "        \"hasIncreaseAmount\": false,\n" +
//                "        \"id\": 54,\n" +
//                "        \"isActiveApp\": true,\n" +
//                "        \"isBlackList\": false,\n" +
//                "        \"locked\": false,\n" +
//                "        \"loginFailureCount\": 0,\n" +
//                "        \"merchantCode\": \"merchant20190212152828\",\n" +
//                "        \"merchantId\": 36,\n" +
//                "        \"merchantName\": \"测试商户赵珂 001\",\n" +
//                "        \"mobile\": \"18306482524\",\n" +
//                "        \"password\": \"320b8e14161ad8090cc4a53506265772b71bc8bd33526c40\",\n" +
//                "        \"productCode\": \"merchantProduct20190212155425\",\n" +
//                "        \"productId\": 61,\n" +
//                "        \"productName\": \"安居借\",\n" +
//                "        \"reBorrow\": true,\n" +
//                "        \"realName\": \"张文婷\",\n" +
//                "        \"registerIp\": \"182.48.105.69\",\n" +
//                "        \"token\": \"72c2f10387ede93ee86507bb5a60282a\",\n" +
//                "        \"totalAmount\": 1000,\n" +
//                "        \"updateDate\": 1552299959000\n" +
//                "    },\n" +
//                "    \"order\": {\n" +
//                "        \"borrowingCapital\": 1000,\n" +
//                "        \"borrowingPaymentAmount\": 700,\n" +
//                "        \"borrowingPeriod\": 7,\n" +
//                "        \"cardNumber\": \"370521199105260022\",\n" +
//                "        \"createDate\": 1552357192123,\n" +
//                "        \"customerId\": 54,\n" +
//                "        \"gender\": true,\n" +
//                "        \"merchantCode\": \"merchant20190212152828\",\n" +
//                "        \"merchantId\": 36,\n" +
//                "        \"merchantName\": \"测试商户赵珂 001\",\n" +
//                "        \"mobile\": \"18306482524\",\n" +
//                "        \"name\": \"张文婷\",\n" +
//                "        \"orderId\": \"XDJK-20190312101952117-199764\",\n" +
//                "        \"productCode\": \"merchantProduct20190212155425\",\n" +
//                "        \"productId\": 61,\n" +
//                "        \"productName\": \"安居借\",\n" +
//                "        \"rateId\": 225,\n" +
//                "        \"reBorrow\": true,\n" +
//                "        \"repaymentLagPenaltyRateValue\": 0,\n" +
//                "        \"repaymentLagRateValue\": 0,\n" +
//                "        \"repaymentLagTime\": 0,\n" +
//                "        \"status\": 0,\n" +
//                "        \"updateDate\": 1552357192123\n" +
//                "    }\n" +
//                "}";
//        JSONObject jsonObject = JSONObject.parseObject(wangting);
//        this.mvc.perform(post("/risk/api/deal/order")
//                .contentType(MediaType.APPLICATION_JSON_UTF8)
//                .content(jsonObject.toJSONString()))
////                .param("ss","ssssss"))
//                .andDo(print())
//                .andExpect(status().isOk())
//                .andDo(print());
//
//
//        Console.info("ss","---------------------------------------");
//
//    }
//}
